package com.lbd99.data.lbd.service;


import cn.hutool.core.io.FileUtil;
import cn.hutool.core.util.IdUtil;
import com.lbd99.data.lbd.dao.XContentFileMapper;
import com.lbd99.data.lbd.vo.XContentFile;
import com.lbd99.data.utils.Constants;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.util.List;

@Service
@Transactional
public class XContentFileService {
    @Autowired
    private XContentFileMapper xContentFileMapper;


    public List<XContentFile> selectList(Integer contentId) {
        XContentFile bean = new XContentFile();
        bean.setContentId(contentId);
        return xContentFileMapper.selectList(bean);
    }

    public void delete(Integer id) {
        xContentFileMapper.deleteByPrimaryKey(id);
    }

    public void insertSelective(XContentFile xContentFile) {
        xContentFileMapper.insertSelective(xContentFile);
    }

    public void updateByPrimaryKeySelective(XContentFile xContentFile) {
        xContentFileMapper.updateByPrimaryKeySelective(xContentFile);
    }


}